package com.ldn.server.boot3.starter;

import com.mybatisflex.core.audit.AuditMessage;
import com.mybatisflex.core.audit.MessageCollector;
import lombok.extern.slf4j.Slf4j;

/**
 * @author 李大牛家的牛 (scafel@163.com)
 * @product serverless
 * @className MyBatisFlexCollector
 * @createDate 2025/3/28 - 10:04
 * @description ToDo...
 **/
@Slf4j
public class MyBatisFlexCollector implements MessageCollector {

    @Override
    public void collect(AuditMessage message) {
        log.info("myBatis-Flex Collect : {}", message);
        log.info(message.getFullSql(), message.getElapsedTime());
    }

}
